<?php
namespace App\Services\Fund;
use App\Services\Fund\CurrencyFreezeLog\CurrencyFreezeLogLogic;
/**
 * 数字币冻结日志
 * Class CurrencyFreezeLog
 * @package App\Services\Fund
 */
class CurrencyFreezeLog
{
     // 获取数字币冻结日志(分页)
    public function list($data): array
    {
        $data = init_array($data,['page'=>'1', 'list_rows'=>'', 'keywords'=>'', 'startTime'=>'', 'endTime'=>'', 'type'=>'']);
        if (empty($data)) {
            return null_data($data,"参数不能为空！");
        }
        ValidateCurrencyFreezeLog::checkValidate($data, ['page', 'list_rows']);
        return (new CurrencyFreezeLogLogic())->list($data);
    }

    // 获取某些user_ids的的数字币冻结日志(分页)
    public function listByUserIds($data): array
    {
        $data = init_array($data,['page'=>'1', 'list_rows'=>'', 'user_ids'=>' ']);
        if (empty($data)) {
            return null_data($data,"参数不能为空！");
        }
        ValidateCurrencyFreezeLog::checkValidate($data, ['user_ids']);
        return (new CurrencyFreezeLogLogic())->listByUserIds($data);
    }

    //获取某一条数字币冻结日志
   /* public function getOneInfo($data): array 
    {
        $data = init_array($data,['user_id'=>0,'app_id'=>'','type'=>' ','obj_id'=>'  ','freeze_counts'=>' ','freeze_status'=>' ']);
        if (empty($data)) {
            return null_data($data,"参数不能为空！");
        }
        ValidateCurrencyFreezeLog::checkValidate($data, ['page', 'list_rows']);
        return (new CurrencyFreezeLogLogic())->getOneInfo($data);
        // $data = $this->haveIssetReceiveData(['user_id'=>0,'app_id'=>'','type'=>' ','obj_id'=>'  ','freeze_counts'=>' ','freeze_status'=>' '],['']);
        // return $this->stepRun($data, 'getOneInfo', 'getOneInfo');
    }*/

}